const {request}=require('./request.js');
// 基于业务封装的数据请求
module.exports={
	// 我要装修首页
	authenticati:(data)=>{
	  return request("/v1/user/certification/index","POST",data,false);
	},
	// 获取用户咨询信息
	privatercyps:(data)=>{
	  return request("/v1/user/info/private","POST",data,false,{
		   'content-type':'application/x-www-form-urlencoded'
	  }); 
	},
	// 用户信息
	userinfo:(data)=>{
	  return request("/v1/user/certification/info/other","POST",data,false,{
		  'content-type':'application/x-www-form-urlencoded'
	  }); 
	},
	//认证用户详细信息
	authentication:(data) =>{
		return request("/v1/user/certification/detail","post",data,false)
	},
	// 普通用户信息
	Information:(data) =>{
		return request("/v1/user/info/simple/detail","get",data,false)
	},
	// 收获地址列表
	address:(data) => {
		return request("/v1/user/address/list","get",data,false)
	},
	// 收获地址编辑
	compile:(data) => {
		return request("/v1/user/address/update","post",data,false)
	},
	// 新增收货地址
	addnewly:(data) => {
		return request("/v1/user/address/new","post",data,false)
	},
	// 删除收货地址
	hdelete:(data) => {
		return request("/v1/user/address/remove","post",data,false,{
			'content-type':'application/x-www-form-urlencoded'
		})
	},
	// 服务页面订单
	addorder:(params) => {
		return request("/v1/service/get","get",params,false)
	},
	// 服务下单
	placeanorder:(data) => {
		return request("/v1/service/place-order","post",data,false)
	},
	// 服务微信支付
	WeChatPay:(params) => {
		return request("/v1/service/pay/wx/xcx/place-order","post",params,false,{
			'content-type':'application/x-www-form-urlencoded'
		})
	},
	// 钱包余额
	walletbalance:(data) => {
		return request("/v1/wallet/balance","post",data,false)
	},
	// 以购买的服务 自己服务列表
	customization:(data) => {
		return request("/v1/service/list/my","post",data,false)
	},
	// 扶我提供者,自己的客户列表
	client:(data) => {
		return request("/v1/service/list/customer","post",data,false)
	},
	// 确定服务 分批
	xensure:(data) => {
		return request("/v1/service/batch/payment","post",data,false)
	},
	// 商品下单
	commodityoder:(data) => {
		return request("/v1/order/place-order","post",data,false)
	},
	// 商品支付
	commoditpay:(params) => {
		return request("/v1/order/pay/wx/xcx/place-order","post",params,false,{
			'content-type':'application/x-www-form-urlencoded'
		})
	}
	}